import request from '@/utils/request'

export function addApi(params: Record<string, any>) {
  return request.post({
    url: '/merchant/add',
    method: 'post',
    params,
  })
}
export function deleteApi(params: Record<string, any>) {
  return request.post({
    url: '/merchant/delete',
    method: 'post',
    params,
  })
}
export function editApi(params: Record<string, any>) {
  return request.post({
    url: '/merchant/edit',
    method: 'post',
    params,
  })
}
export function listsApi(params: Record<string, any>) {
  return request.post({
    url: '/merchant/lists',
    method: 'post',
    params,
  })
}
export function detailApi(params: Record<string, any>) {
  return request.post({
    url: '/merchant/detail',
    method: 'post',
    params,
  })
}
